package com.zzyl.nursing.service;

import java.util.List;

import com.zzyl.common.core.page.TableDataInfo;
import com.zzyl.nursing.domain.Reservation;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.dto.PageDto;
import com.zzyl.nursing.dto.ReservationMemberDto;
import com.zzyl.nursing.dto.ReservationPageDto;
import com.zzyl.nursing.vo.CountByTimeMemberVo;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 预约信息Service接口
 *
 * @author alexis
 * @date 2025-01-12
 */
public interface IReservationService extends IService<Reservation>
{
    /**
     * 查询预约信息
     *
     * @param id 预约信息主键
     * @return 预约信息
     */
    public Reservation selectReservationById(Long id);

    /**
     * 查询预约信息列表
     *
     * @param reservation 预约信息
     * @return 预约信息集合
     */
    public List<Reservation> selectReservationList( Reservation reservation);

    /**
     * 新增预约信息
     *
     * @param reservation 预约信息
     * @return 结果
     */
    public int insertReservation(Reservation reservation);

    /**
     * 修改预约信息
     *
     * @param reservation 预约信息
     * @return 结果
     */
    public int updateReservation(Reservation reservation);

    /**
     * 批量删除预约信息
     *
     * @param ids 需要删除的预约信息主键集合
     * @return 结果
     */
    public int deleteReservationByIds(Long[] ids);

    /**
     * 删除预约信息信息
     *
     * @param id 预约信息主键
     * @return 结果
     */
    public int deleteReservationById(Long id);

    Integer getCancelledReservationCount(Long userId);

    List<CountByTimeMemberVo> getCountByTime(Long time);
    /**
     * 新增预约
     * */
    void addReservation(Reservation reservation);

    TableDataInfo<Reservation> reservationPage(Integer pageNum, Integer pageSize, Integer status);

    void cancelReservation(Long id);

    void updateReservationStatus();
}
